home *** CD-ROM | disk | FTP | other *** search
/ Amiga Collections: MegaDisc / MegaDisc 36 (1993-11)(MegaDisc Digital Publishing)(AU)(Disk 1 of 2)[WB].zip / MegaDisc 36 (1993-11)(MegaDisc Digital Publishing)(AU)(Disk 1 of 2)[WB].adf / Tutes_&_CLI / Beginners_DiskUtes / Beginners_DiskUtes
Text File  |  1993-10-22  |  38KB  |  848 lines

  1.  
  2.  
  3.  
  4.  
  5.                     A BEGINNERS GUIDE TO DISK UTILITIES 
  6.  
  7.                                     by
  8.                                Leigh Murray
  9.  
  10.  
  11.  
  12.     36 -+- 36 -+- 36 -+- 36 -+- 36 -+- 36 -+- 36 -+- 36 -+- 36 -+- 36 
  13.  
  14.  
  15. INTRODUCTION
  16.  
  17. Handy Helpers
  18.  
  19.    There is a huge range of disk utilities in the public domain, all aimed at
  20.   making some aspect of disk management easier or more effective.  Many of
  21.   these programs are top-class in quality, reliability and presentation, and
  22.   they give their commercial counterparts a run for their money.
  23.  
  24. DiskStarter:  A One-Disk Kit
  25.  
  26.    To provide a one-disk introduction to these disk management goodies, I
  27.   compiled a disk for MegaDisc, called DiskStarter.  It is one of the Starter
  28.   series, START 7.
  29.  
  30.    The programs on DiskStarter include some of the best disk utilities,
  31.   providing a cross-section of functions:  backup utilities, optimizers, file
  32.   recovery utilities and file finders.
  33.   
  34.    All of these programs were originally published on Fish disks, and you may
  35.   already have the ones you want.  The programs are:
  36.   
  37.   Backups
  38.   
  39.   . ABackup version 2.43, from Fish 871 (powerful backup utility); and
  40.   . SuperDuper version 2.01, from Fish 590 (fast disk copier and formatter).
  41.   
  42.   Finders
  43.  
  44.   . FindFile version 1.01, from Fish 729 (file find utility for WB2+);
  45.   . FindIt version 1.2, from its author (file finder, copy etc, WB2+) -
  46.            an earlier version is on Fish 731; and
  47.   . Whereis version 1.18, from Fish 321 (file finder, CLI-only).
  48.   
  49.   Fixers
  50.  
  51.   . BFormat version 4.0, from Fish 758 (formats disks that have errors);
  52.   . DiskSalv version 1.42, from Fish 251 (disk recovery program);
  53.   . DiskSalv2 release 11.27, from Fish 891 (disk recovery program, WB2+); and
  54.   . FixDisk version 1.2, from Fish 403 (disk recovery program).
  55.   
  56.   Optimizers
  57.   
  58.   . Optimizer version 1.0, from Fish 519 (disk optimizer, easy but slow); 
  59.   . ReOrg version 1.1, from Fish 716 (fast disk optimizer, CLI-only); and
  60.   . ReOrg version 2.31, from Fish 716 (fast disk optimizer, WB2+).
  61.   
  62. Tutorials
  63.     
  64.    There are two tutorials/articles on DiskStarter, both from MegaDisc 30:  
  65.   
  66.   . Data Recovery by Paul McLachlan, and 
  67.   . Paths and Assigns by Leigh Murray.
  68.  
  69.    The first one covers the theory of recovering lost and damaged files, and
  70.   the second describes Amiga file structures, paths, devices and assigns.
  71.  
  72.    There are many other tutorials/articles on previous MegaDiscs to help
  73.   guide you in effective disk management.  For instance, check out
  74.  
  75.   . Disk Fragmentation and Disk Handling by Paul McLachlan on MegaDisc 30;
  76.   . Hard Drive Software Installation by Adriaan Piels on MegaDisc 23;
  77.   . Hard Drive Housekeeping by G. Frick on MegaDisc 31;
  78.   . Hard Drive Set Up by Paul McLachlan on MegaDisc 31;
  79.   . Hard Drive by Mitchel Hopping on MegaDisc 32;  and
  80.   . Recovering Lost Files by John Knight on MegaDisc 21.
  81.  
  82. Brief Guide Notes to Programs
  83.  
  84.    Below are overviews and brief practical notes on all of the programs on
  85.   DiskStarter, to give an idea of what they are like to use, and show a few
  86.   easy options to select.  These notes are supplementary to, and in no way
  87.   replace, the program documentation (in fact, some of the program
  88.   descriptions are `lifted' straight from the program doc).
  89.  
  90. Workbench Compatibility
  91.  
  92.    Four of the programs on DiskStarter (BFormat, Whereis, and version 1 of
  93.   both DiskSalv and ReOrg) can only be run from the CLI or Shell.  They are
  94.   all excellent programs, and quite easy to use, especially if you use only a
  95.   small subset of the available commands (as would most users).  I could find
  96.   no suitable Workbench-initiated programs in these categories for users with
  97.   Workbench 1.3 or 1.2 systems.
  98.  
  99.    Several of the other programs can only be used on systems with Workbench 2
  100.   or higher.
  101.  
  102. Running Programs from the CLI
  103.  
  104.    You can open a Shell by clicking on the Shell icon in the main window of
  105.   the Workbench disk.
  106.  
  107.    When running programs from the CLI or Shell, remember that you must either
  108.   make the directory containing the program the current directory (by cd'ing
  109.   to that directory) or give full path details so the system can find that
  110.   program.
  111.  
  112.    For example, to run Whereis from DiskStarter in df1:,
  113.  
  114.   .  type   cd df1:finders/whereis   to make the directory (called Whereis)
  115.      containing the Whereis program the current directory,
  116.  
  117.      then type the Whereis command (such as whereis df0: *.info).
  118.  
  119.   .  or each time you want to run the Whereis program, give full path info to
  120.      the program, such as
  121.  
  122.           df1:finders/whereis/whereis df0: readme
  123.              or
  124.           DiskStarter:Finders/Whereis/Whereis df0: *.doc
  125.  
  126. No Prerequisite Libraries
  127.  
  128.    None of the programs on DiskStarter require special libraries to function. 
  129.   The only exception to this would be if you wish to use one of the optional
  130.   data compression methods of ABackup.  In this case, you may need to install
  131.   the xpkmaster.library in your libs: if you do not already have it.  (Libs:
  132.   is the libs directory in the root directory of the Workbench disk you have
  133.   booted from.)  The library and a script to copy it are in the ABackup
  134.   drawer.
  135.  
  136. Wildcards
  137.  
  138.    Many of the programs support the standard AmigaDOS wildcard indicator #?. 
  139.   That is, the characters #? are specified in a name to indicate the variable
  140.   part of the name.  Some of the programs also support the * as a wildcard
  141.   indicator.
  142.  
  143. Look and Read
  144.  
  145.    You may find it helpful, for the programs which are not CLI-only, to start
  146.   the program (by clicking on its icon), just so you can see what its screen
  147.   layout looks like.  Then, without selecting any options, use the front/back
  148.   gadget in the top right hand corner to swap back to Workbench, display
  149.   these Guide notes and/or the program documentation, read a bit, then swap
  150.   back to the program to see what is being described in the Guide notes or
  151.   program doc.  Reactivate the window by clicking in it with the left mouse
  152.   button.
  153.  
  154.  
  155. EXTRA.HELP
  156.  
  157. Sample Scripts
  158.  
  159.    DiskStarter has a drawer called Extra.Help, containing sample scripts
  160.   I provided to show how a few simple tasks can be set up to operate from an
  161.   icon.  By using a script, where it is feasible, the operation of CLI-based
  162.   programs can be made less error-prone.  The sample scripts can be used as
  163.   supplied, or tailored to suit.
  164.  
  165. Format Scripts
  166.  
  167.    The two scripts for formatting a disk in df0: (Format0 for a full format,
  168.   and Format0q for a quick format of a previously-formatted disk) were set up
  169.   for my own use after a near disaster I had on one of my dopier days.  The
  170.   scripts are designed so that only a disk in df0: will be formatted (not
  171.   dh0:, as I nearly did, or df1:, or any other drive).  There is a message
  172.   requiring confirmation, to force me to think carefully about whether I
  173.   really do want to format the disk that is in df0:.  I've found these
  174.   scripts very handy indeed, a real security blanket, so I put versions of
  175.   them on DiskStarter in case others find them useful too.
  176.  
  177.    By the way, the near disaster of an unintended format of my hard disk
  178.   happened (oh so easily...) because the icon for the hard drive was still
  179.   selected (I'd just opened the main window) and I forgot to click on the
  180.   df0: disk icon before selecting Initialise from the Workbench menu.  I was
  181.   about to confirm that I wanted to format the disk when I realised, to my
  182.   horror, that the message was asking me about dh0: not df0:!  After aborting
  183.   the format, I tottered shakily off to have a reviving snack, and resolved
  184.   to use a more foolproof method in future.  Hence the scripts.
  185.  
  186. Example Scripts
  187.  
  188.    The other scripts in the Extra.Help drawer are examples, to show how some
  189.   of the CLI-only programs on DiskStarter could be operated from an icon. 
  190.   There are scripts for BFormat, and version 1 of ReOrg and DiskSalv.
  191.  
  192. XIcon
  193.  
  194.    Note that the scripts use XIcon (if you use Info or Information from the
  195.   Workbench menu, you can see the Default Tool specified in the icon).  For
  196.   these scripts to work, you must have XIcon in the c directory (such as on
  197.   DiskStarter).  XIcon was used instead of the more normal IconX (which comes
  198.   with Workbench) because it allows replies to questions in the script; in
  199.   Workbench 1.3, IconX does not have this facility.  If you wish to use such
  200.   scripts, you may want to copy XIcon into the c directory of your work copy
  201.   of your Workbench disk (never change the original Workbench disk, and
  202.   always work off a copy of it, write-protected).  Note that you will have to
  203.   change the default tool to c:XIcon if you do this.
  204.  
  205. Programs Copied to RAM: First
  206.  
  207.    The scripts all copy the program and several AmigaDOS commands (copy, info
  208.   etc) to RAM: first, to make operation suitable for Amigans who have only
  209.   one drive.  (But `One-Drivers' should seriously consider buying another
  210.   drive, either a floppy or, better, a hard drive.  Most Amiga tasks become
  211.   much easier when you have a second drive.)
  212.  
  213. Saving Disk Swaps
  214.  
  215.    When executing the scripts, several disk swaps can be saved by copying the
  216.   script to the RAM: disk first.  Just drag the icon for the script into the
  217.   RAM disk window.  Then click on the icon in this window to execute the
  218.   script from RAM:.
  219.  
  220. Editing the Scripts
  221.  
  222.    Using a text editor, such as Ed (which comes in the c directory of every
  223.   standard Workbench disk) you can edit the script files.  Other suitable
  224.   text editors include QED (the excellent editor I am using to prepare this
  225.   document), AZ and Textra;  all of these text editors are available in the
  226.   public domain (and I plan to put some of them on a later Starter disk, with
  227.   guide notes).
  228.  
  229.    The Format and BFormat scripts are set up to format disks only in df0:. 
  230.   These scripts could be edited, for instance, so that they format disks in
  231.   other drives, or to give the disks a different default name.
  232.  
  233.    The DiskSalv and ReOrg scripts are both set up to salvage/optimize from
  234.   df0: to df1:.  That is, they refer to 2 floppy drives, at those addresses. 
  235.   The scripts could be changed, say, to DiskSalv to RAM: or a hard drive
  236.   directory instead of df1:, or to ReOrg back on to the same disk in df0: or
  237.   use a different floppy drive address.
  238.  
  239.  
  240. BACKUPS
  241.  
  242. Overview
  243.  
  244.    It is important that you make backup copies of all files that you don't
  245.   wish to lose.  These can be done on a file-by-file basis simply by copying
  246.   the files from one floppy to another or from hard disk to one or more
  247.   floppies.  You can also make copies of floppy disks, or backup all the
  248.   files on a hard disk (and you should always backup a hard disk before
  249.   partitioning or reformatting it).
  250.  
  251.    ABackup is a powerful utility for backing up hard disks, floppy disks or
  252.   files.  SuperDuper is a fast disk copier and formatter which allows you to
  253.   make multiple copies of a disk.  Both can be used from Workbench or the
  254.   CLI.
  255.  
  256. ABackup
  257.  
  258.    ABackup can be used to make a backup of your hard disk or to archive files,
  259.   with optional data compression.  It can do a full or partial backup and
  260.   restore, and it allows file selection by name, date, and protection bits. 
  261.   There are options for verification, compression and report format, and the
  262.   program can estimate the number of disks required and the time the backup
  263.   will take.  You can use several disk drives for backup.
  264.   
  265.   .  ABackup can be run from the CLI, or started from Workbench by clicking
  266.      on its icon.
  267.  
  268.   .  Click on `Backup an AmigaDOS Partition' (or Restore or Quit) on the
  269.      opening screen.
  270.  
  271.   .  Click anywhere with the right mouse button on the next screen to display
  272.      a list of devices, then click on the device or directory you wish to
  273.      backup. (Make sure the selection window is active - the window title bar
  274.      should be blue;  if not, activate it first by clicking in it with the
  275.      left mouse button.)
  276.  
  277.   .  Select files for backup by clicking on the various Include and Exclude
  278.      options or by selecting the files in the file list.  Use the Parent
  279.      gadget to return to a higher directory level. The total number of files
  280.      selected and their combined size will be displayed in the Selection box.
  281.  
  282.   .  Click on the Options button (or select Options from the menu), and
  283.      choose the verification, report, compression etc by clicking on the
  284.      buttons.  Type the full output path into the `Backup to' gadget (eg
  285.      df0:).  To use multiple drives for backup, enter the drive addresses
  286.      separated by a comma (eg df0:,df1:).
  287.  
  288.   .  Select Estimations from the menu to get an estimate of the number of
  289.      disks needed and the time the backup will take.
  290.  
  291.   .  Click on the Start button (or select Start from the menu) to commence
  292.      the backup.
  293.  
  294. SuperDuper
  295.  
  296.    SuperDuper is a disk copier/formatter.  It is fast - a disk is usually
  297.   copied and verified in less than 100s, which is faster than DiskCopy.  With
  298.   SuperDuper, you can make multiple copies at once (if you have multiple
  299.   drives), and any number of duplications can be made after reading the
  300.   source disk only once.  SuperDuper alerts the user with sound (and
  301.   optionally voice) about the operations in progress.
  302.  
  303.    Note that no menu functions are available with SuperDuper - everything is
  304.   controlled by gadgets or keyboard shortcuts.  Functions which have been
  305.   selected (or are selected by default unless you deselect them) are
  306.   indicated by highlighting their gadgets.
  307.  
  308.   .  SuperDuper can be started from the CLI or Workbench.
  309.  
  310.   .  Click on the Source gadget for the disk you want to copy (eg df0:).
  311.  
  312.   .  Click on one or more of the Dest(s) gadgets to select output addresses.
  313.  
  314.   .  Click on Format if you want to format a disk instead of copying one. 
  315.      Type the name you want to give the output disk into the Label gadget, or
  316.      let it default to Empty.
  317.  
  318.   .  Leave the Verify and Date gadgets selected (especially the Verify - it
  319.      is unwise to write to a disk without verifying).
  320.  
  321.   .  Click on Go to start the diskcopy or format.
  322.  
  323.   .  Click on the Close gadget to exit, or use Q or ESC.
  324.  
  325.  
  326. FINDERS
  327.  
  328. Overview
  329.  
  330.    FindFile and FindIt are file find utilities for use under Workbench 2.04
  331.   or higher;  both use many of the Workbench 2 features, and can be run from
  332.   Workbench or the CLI.  Whereis is a CLI-only file finder, provided on
  333.   DiskStarter for Workbench 1.2/1.3 users.
  334.  
  335.    FindFile, FindIt and Whereis can be used to search for particular file
  336.   names. This is a function you need when you can't remember exactly where a
  337.   file is stored (in which of 100 nested directories it resides!) or its
  338.   precise name.
  339.  
  340.    FindIt can also be used to search for a specified text string within a
  341.   file, and it has a number of features normally found in directory utilities
  342.   - it can copy or delete files found in searches; if those files are text
  343.   files, it can display them, and if they are pictures, it can show them. 
  344.   FindIt is quite a powerful program.
  345.  
  346. Directory Utilities
  347.  
  348.    Many of the newer directory utilities have functions for finding files
  349.   and/or searching for a given text string.  SID2, Directory Opus and DirWork
  350.   have those functions.  (Demos of these directory utilities are on the
  351.   Directory Utility Starter disk, START 2, along with tutorials and notes to
  352.   guide new users.)
  353.  
  354. FindFile
  355.  
  356.    FindFile is a file find utility for use under Workbench 2.04 or later.  It
  357.   is very easy to use.
  358.  
  359.   .  Click on its icon to start it.
  360.  
  361.   .  Click on Browse and then Disks, Parent etc until the full top-level
  362.      search path is detailed.
  363.  
  364.   .  Click in the Search For gadget, and type in the file matching details.
  365.  
  366.   .  Click on Go to begin the search.  Filenames which match the specified
  367.      criteria will be listed in the lower part of the FindFile window.
  368.  
  369.   .  Click on any filename in that list to display its full path information.
  370.  
  371. FindIt
  372.  
  373.    FindIt is a powerful file finder whose features include searching multiple
  374.   drives/directories, searching for file names starting with/not starting
  375.   with given text, file names containing/not containing given text, file
  376.   names ending with/not ending with given text, files created
  377.   on/after/before/not-on given date, files containing given text, etc.  Found
  378.   files can be copied, deleted, viewed, or printed.
  379.  
  380.   .  Click on the FindIt icon to start.
  381.  
  382.   .  Select the directories to search: click on Find and then Disks etc (use
  383.      Clear first if you want to clear out all previous search paths, or
  384.      Remove individual entries).  You can click on a particular disk name (to
  385.      search a whole volume) or click on directories or subdirectories to
  386.      limit the search to portions of a volume.  Click on Add to add search
  387.      paths to your search list.
  388.  
  389.   .  Set the search criteria: cycle through the options and/or click in the
  390.      gadgets beside Starts, Ends etc and enter the details.  For example,
  391.      files which End in .info, Created Before 01 01 93, Search Files Only,
  392.      Search Sub-Directories, New Search, Ignore Case.
  393.  
  394.   .  Click on the large Find It gadget to initiate the search.
  395.  
  396.   .  Click on the gadgets below to Copy, Move or Delete files.  You can Read
  397.      text files or Show pictures by selecting the file and clicking on those
  398.      gadgets.  Click on Info to display more details about files.
  399.  
  400. Whereis
  401.  
  402.    Whereis is a utility which searches for specified filenames on disk and
  403.   shows you the paths to these files.   Although Whereis can be used to
  404.   search floppy disks, it is particularly designed for use with hard disks,
  405.   where it is very easy to forget which one of hundreds of subdirectories
  406.   contains a given file. If, for instance, you don't know in which of them
  407.   the program "DiskSalv" is, just type in: "whereis disksalv" and Whereis
  408.   will search through your whole active volume.  Whereis has optional
  409.   case-sensitive searching, can display the sizes of files found or the time
  410.   and date last updated.  Whereis supports both #? and * wildcard patterns,
  411.   and also has a ? wildcard (for a single character).
  412.  
  413.    For example,
  414.  
  415.      whereis df1: readme"   searches for readme on df1:
  416.  
  417.      whereis df0: #?.doc
  418.         or
  419.      whereis df0: *.doc     searches for all the files ending in .doc on df0:
  420.  
  421.      whereis df3:Backups ?B* -c -s   searches the Backups directory of the
  422.                                      disk in df3: for files with B as the
  423.                                      second character, and displays the size
  424.                                      of found files.
  425.  
  426.    Whereis can be aborted at any time with CTRL-D (press the Ctrl key and D
  427.   key together) or CTRL-C.
  428.  
  429.  
  430. FIXERS
  431.  
  432. Overview
  433.  
  434.    The programs in the Fixers drawer of DiskStarter can be used for two main
  435.   tasks:  salvaging files from physically damaged disks, and recovering files
  436.   that have been accidentally deleted.  There is also a program for
  437.   reallocating bad sectors on a disk.  If possible, read the Disk Recovery
  438.   tutorial (on START 7 or MegaDisc 30) before using any of these programs for
  439.   the first time.  See also Recovering Lost Files in the Articles drawer of
  440.   MegaDisc 21 (or on MD.ArticlesII).
  441.  
  442. Salvaging Files
  443.  
  444.    The most important thing to remember when you accidentally delete a file
  445.   or get a read/write error on a disk, is DO NOT WRITE TO THAT DISK (or hard
  446.   disk partition) again until you have attempted to recover the file(s) on
  447.   that disk.
  448.  
  449.    For safety, I prefer to salvage from one floppy disk to another, and then
  450.   reconstruct a new copy of the damaged disk from the salvaged one on to a
  451.   third disk.
  452.  
  453.    There are two programs on DiskStarter for salvaging files: FixDisk and
  454.   DiskSalv (two versions).  If you try DiskSalv, and that fails to recover
  455.   all your files, then it is worth also trying FixDisk.  Or vice versa
  456.   (unless you have already tried to salvage back on to the same disk with
  457.   FixDisk).
  458.  
  459.    For salvaging files, I have only ever used DiskSalv, and I've found it
  460.   very satisfactory.  I noticed while testing version 1 of DiskSalv for
  461.   DiskStarter that it seems to have a problem when run on a Workbench 1.3
  462.   system with 1MB chip RAM and no fast RAM (DiskSalv gives repeated Out of
  463.   Memory messages);  if you have a similar system, you may need to rely on
  464.   FixDisk.
  465.  
  466.    DiskSalv has one feature that FixDisk does not:  it keeps track of loose
  467.   blocks (those files without a file header).  What this means in practice is
  468.   that with deleted files, FixDisk shows more of them without any directory
  469.   organization, whereas DiskSalv shows their organization in directories
  470.   called, for instance, LOOSE-BLOCKS/DIRBLK-900 (instead of the original
  471.   directory name).  (Directory links are lost when you delete a file.)  Where
  472.   you want to retain the original directory structure, it would be easier to
  473.   reconstruct the disk with DiskSalv; just copy the disk to another disk, and
  474.   rename the Loose-Blocks directories to their original names.
  475.  
  476. Undelete
  477.  
  478.    FixDisk and DiskSalv2 have a specific Undelete option.  This is very easy
  479.   to use.  You don't need to remember the actual names - you can see them in
  480.   the file requester, which can be scrolled back and forth.  For instance
  481.   with FixDisk, just click on the names and click on Undelete or Copy, and
  482.   the files are restored/copied.  With DiskSalv version 1 most of the names
  483.   in a long file list roll off the screen, so you have to enter search
  484.   criteria to narrow the search, and then type in the names of the files to
  485.   be recovered.
  486.  
  487.    With FixDisk you can Undelete a file in situ, on the volume it was deleted
  488.   from (or you can copy it to another disk);  with DiskSalv you can only copy
  489.   it to another volume, and then copy it back.
  490.  
  491. Which is Best?
  492.  
  493.    FixDisk can be run from Workbench.  For Workbench 1.3 users, DiskSalv
  494.   cannot;  with Workbench 2 or higher, DiskSalv2 can be run from Workbench.
  495.  
  496.    On a Workbench 1.3 system, I would choose DiskSalv for salvaging whole
  497.   disks, and FixDisk for recovering a few accidentally deleted files.
  498.  
  499.    With Workbench 2 or higher, I would still choose FixDisk for undelete
  500.   functions, and DiskSalv2 for salvaging disks because it makes use of many
  501.   new features in the operating system.
  502.  
  503. Do a Simple Test
  504.  
  505.    Preferably before you get any disk problems and need to use one of these
  506.   salvage programs, why not try them out to get a feel for how they operate
  507.   and decide which suits you best?  Create a test disk (perhaps by copying
  508.   another disk - you could try out SuperDuper for the copy!), then delete
  509.   some or all files, and see how easy it is to recover a few files/salvage
  510.   the whole disk.
  511.  
  512. DiskSalv v1
  513.  
  514.    Version 1 of DiskSalv can only be run from the CLI or Shell.  Those with
  515.   Workbench 2 or higher should use DiskSalv2 (see below), which can be run
  516.   from Workbench and has many new features.
  517.  
  518.    DiskSalv v1 will scan a bad disk volume for anything that can be recovered,
  519.   and will restore these items to any AmigaDOS volume.  It does not make any
  520.   attempt to fix the bad volume in place;  thus, any file that can't be
  521.   restored with DiskSalv might possibly be restored with an alternative
  522.   method.  DiskSalv can also be used to recover lost files, as long as the
  523.   files have not been overwritten.
  524.  
  525.    To salvage a floppy disk:
  526.  
  527.   .  Slide the Write-Protect tag on the disk across so that you can see
  528.      through the hole, as a precaution.
  529.  
  530.   .  Open a Shell (by clicking on the Shell icon in the main window of the
  531.      Workbench disk).
  532.  
  533.   .  Type   copy DiskStarter:Fixers/DiskSalv/DiskSalv.v1/DiskSalv to RAM:
  534.  
  535.   .  To recover files from the bad disk in df0: and restore them on a good
  536.      disk in df1:, type
  537.  
  538.           ram:DiskSalv from df0: to df1:
  539.  
  540.      or to restore them (temporarily) to RAM:, type
  541.  
  542.           ram:DiskSalv from df0: to RAM:
  543.  
  544.  
  545.    To recover lost files:
  546.  
  547.           ram:DiskSalv dh0: FILE swan#? to RAM:
  548.  
  549.      DiskSalv will scan through all the blocks of dh0: (perhaps 143,000 or
  550.      more) looking for any swan files;  pathnames are useless here - they
  551.      make no difference.
  552.  
  553.  
  554.    Loose Blocks: 
  555.   
  556.    Any files or parts of files or directories which have had their directory
  557.   structure partially destroyed will be salvaged into a directory called
  558.   LOOSE-BLOCKS in the root directory of the target disk;  they may be within
  559.   subdirectories with names such as DIRBLK-882.
  560.  
  561.    These files may be completely intact, with only their path details lost.
  562.   All you need to do to recover such files is to recreate the directories
  563.   that are missing, and copy the files from the LOOSE-BLOCKS directory/
  564.   subdirectories into these directories.  (Refer to section 1.2 - line 98 -
  565.   of the DiskSalv doc.)
  566.  
  567. DiskSalv 2
  568.  
  569.    This version of DiskSalv can only be run on Workbench 2 or higher.  It has
  570.   two basic modes of salvage operation:  "Recover-by-Copy" (in which DiskSalv
  571.   attempts to restore files and directories from a damaged disk to a good
  572.   one) and "Fix-in-Place" (DiskSalv attempts to find faulty disk objects and
  573.   remove them so that the disk can be validated).
  574.  
  575.   .  Select the Device for Scan.
  576.  
  577.   .  Cycle through the Mode options by clicking on the arrow gadgets.  Select
  578.      Salvage or Undelete etc.  (Salvage relates to all files on the disk,
  579.      Undelete only to deleted files still on the disk.)
  580.  
  581.   .  Select Scan.  (You can Set Filter first to restrict the scan.)
  582.  
  583.   .  Select Files or Directories that you want to recover;  they will be
  584.      tagged in the Salvage List as you select them.  Select entries by using
  585.      the Select gadgets and/or clicking once on filenames;  click twice on
  586.      directories to display their contents for selection.  Files which are
  587.      still on the disk but without their directory links will be listed in
  588.      the Salvage List under a directory called DISKSALV-EXTRAS (its
  589.      subdirectories will have names such as DIR-384).
  590.  
  591.   .  Click on Clear Directory or Clear Files to clear recovery tags from
  592.      entries in the Salvage List, on Info to display information about files,
  593.      or on Forget to remove those entries from the Salvage List - a handy way
  594.      of pruning entries from a long browsing list for files you don't want to
  595.      recover, making the list easier to read (the files remain on the disk).
  596.      (If you mistakenly Forget entries for files you wish to recover, you'll
  597.      have to start again by selecting New Device from the Project menu.)
  598.  
  599.   .  Select Output Path by typing in the path or by clicking on the disk
  600.      gadget (or abort the salvage process by selecting the New Device or Quit
  601.      menu items).
  602.  
  603.   .  Click on Salvage to salvage the files to the output device.
  604.  
  605.   .  DiskSalv will create a directory called DISKSALV-EXTRAS on the output
  606.      disk;  it will place all recovered files which have lost their original
  607.      directory structure into this directory.  If the disk already has a
  608.      directory with that name, DiskSalv will create directories with -0, -1
  609.      etc suffixes (DISKSALV-EXTRAS-0).  Files will be salvaged under the same
  610.      subdirectories as in the Salvage List;  afterwards, you can rename those
  611.      with names such as DIR-384 to their original names.
  612.  
  613. FixDisk
  614.  
  615.    FixDisk is a program to recover as much as possible from a defective disk. 
  616.   It has functions to check file integrity, to check the directory structure,
  617.   and to undelete, copy or show (even defective) files and fix corrupted
  618.   directory pointers.   A damaged file structure can be recovered by copying
  619.   the data file by file to another disk (à la DiskSalv) or can be fixed in
  620.   place (like DiskDoctor).  FixDisk can be run from Workbench or the CLI. 
  621.   FixDisk does not keep track of loose blocks (those files without a file
  622.   header) as DiskSalv does.  And it doesn't process hard disk partitions
  623.   bigger than 48MB.
  624.  
  625.    After starting FixDisk from the CLI or Workbench, a window will open, with
  626.   17 gadgets on the right half.  Some of these gadgets are disabled at
  627.   startup - those which let you write back onto the same disk.  If you want
  628.   to enable them, choose "Write enable" from the Miscellaneous menu.
  629.  
  630.   .  Click on one of the drive gadgets in the top of the window (you can
  631.      cycle through the list by clicking on the arrow keys).
  632.  
  633.   .  FixDisk will then read in the disk, cylinder by cylinder, searching for
  634.      file/directory headers. You can abort this process with the Ctrl-C key
  635.      combination.
  636.  
  637.   .  When the disk has been examined, a file requester in the left half of
  638.      the window will show files and directories (highlighted) preceded by DEL
  639.      for deleted files or '-->' for active files.
  640.  
  641.   .  Click twice on directory names (highlighted) to display their contents,
  642.      return by clicking on the Parent gadget.  Select files and/or
  643.      directories for copying etc by clicking on them;  shift-click for
  644.      multiple selection.
  645.  
  646.   .  Use Check Files for checking to see if files are defective, and whether
  647.      they can be undeleted etc.
  648.  
  649.   .  Use Copy Files to copy files to another device.  You will be asked:
  650.      `Use links from file header or use block links ?'.
  651.      Choose Header - this is the safer option.  You will then be asked:
  652.      `Copy file "Drawer1" to', followed by a string gadget.
  653.      Enter the full pathname of the output device, and click on DONE (or
  654.      CANCEL to abort).
  655.  
  656.   .  Use Undelete to restore deleted files to the same disk (you may have to
  657.      Write Enable the disk from the menu first).  You will be asked:
  658.      `Undelete selected files directly on drive "df0:" ?'.
  659.      Reply KEEP ON (or  STOP to abort).
  660.  
  661. Reallocating Bad Disk Sectors
  662.  
  663.    BFormat formats disks (both floppies and hard drives) that have media
  664.   errors on them and allocates those areas as used, making the rest of the
  665.   disk usable.
  666.  
  667.    This type of utility should not be used on disks which have been so
  668.   damaged physically that you can see it just by looking at the disk.  But if
  669.   a disk appears to be in good condition, and only has a read/write error or
  670.   two, then it is probably safe to BFormat the disk, and use the remainder of
  671.   the disk again.  However, should you do this, it would not be wise to use
  672.   the disk for storing any very important files - just use it for work files,
  673.   or as additional backup.
  674.  
  675. BFormat
  676.  
  677.    BFormat can be run only from the CLI.  To format a disk in df0: (giving it
  678.   the name BF.Output), using the Old File System (the NOFFS option) and
  679.   maximum verification (the SLOW option), type
  680.  
  681.           BFormat DRIVE df0: NAME BF.Output NOFFS SLOW
  682.  
  683.    Or, to run BFormat with these options, from an icon, click on the BFormat.X
  684.   icon in the Extra.Help drawer.
  685.  
  686.  
  687. OPTIMIZERS
  688.  
  689. Overview
  690.  
  691.    Drive Optimizer is very easy to use, but very slow.  It has a simple
  692.   presentation.  It is a good optimizer for beginners because its
  693.   documentation is short and it has few options, so there is less potential
  694.   for confusion.
  695.  
  696.    ReOrg does a terrific job in optimizing disks;  it is fast and powerful. 
  697.   And floppy disks sound so smooth and quiet after they've been ReOrg'd that
  698.   they almost seem to sing!  If you try it, you'll hear what I mean.  ReOrg
  699.   has many options, and its documentation is voluminous (and excellent).  It
  700.   is a beautifully presented program in its Workbench 2 form, but it is not
  701.   ideally suited to an absolute beginner, simply because of its power.
  702.  
  703.    It is important to understand the many options available with ReOrg, so
  704.   read the doc, and try to understand it - at least for the options you want
  705.   to use.
  706.  
  707. Extra Help with ReOrg
  708.  
  709.    On DiskStarter, in the Extra.Help drawer (for Workbench 1.3 users) and in
  710.   the ReOrgV2.31 drawer (for those with Workbench 2 or higher), I provided a
  711.   couple of suggestions of the options you might wish to use for a safe
  712.   ReOrg.  To use these, just click on the icon, insert the disks, and follow
  713.   the prompts.
  714.  
  715. Warning
  716.  
  717.    Do not, unless you want to live dangerously, optimize back to the source
  718.   disk without making a BACKUP copy first.  And when using ReOrg, it is best,
  719.   if you have two drives, to optimize to a different disk.
  720.  
  721. Drive Optimizer
  722.  
  723.    This program is very easy to use, but very slow.  I have used it on floppy
  724.   disks, with no problems, but it guru'd the only time I tried to scan a
  725.   100MB hard drive with it.
  726.  
  727.   .  Click on the Opt icon.  To stop at any time, click on the STOP gadget.
  728.  
  729.   .  Click on the DRIVE button, then keep clicking while it cycles through
  730.      the device addresses on your system, until it shows the device you wish
  731.      to optimize (eg df0:).
  732.  
  733.   .  Click on the SCAN button.  Drive Optimizer will scan the disk and
  734.      display the fragmentation in a diagram.
  735.  
  736.   .  When the scan is complete, click on START to begin the optimizing
  737.      process.
  738.  
  739.   .  Take a Meal Break!  The process is very slow .....  (More than an hour!)
  740.      And time estimates can best be described as imaginative.  Very.
  741.  
  742.   .  When Drive Optimizer has finished, click on STOP to exit.
  743.  
  744.    Disk accesses to your newly-optimized disk should now be much faster and
  745.   smoother (the drive heads shouldn't have to move back and forth nearly as
  746.   much).  Icons should be displayed more quickly, and when you click on one
  747.   of the drawer icons, the window should open much faster.
  748.  
  749. ReOrg version 2 - for Workbench 2 or higher
  750.  
  751.    ReOrg is a powerful program, and it is important to understand options
  752.   before using them.
  753.  
  754.   .  ReOrg version 2.3 (or later) can be run from the CLI or started by
  755.      clicking on its icon.
  756.  
  757.   .  Cycle through the Format and Mode options by clicking on the arrow
  758.      button beside each option field.
  759.  
  760.   .  Cycle through the Mode options to select one or two drives (choose two,
  761.      if possible).  Select the FROM and TO drive addresses by clicking on one
  762.      of the entries in each of the Drive lists.
  763.  
  764.   .  Click in the small gadgets beside Write Verify, Workbench Mode and
  765.      Graphical Sector Display;  a tick in any of these fields indicates you
  766.      want that option.
  767.  
  768.   .  Click in the Advanced Options gadget if you want to change any of these
  769.      options (which is unlikely unless you happen to want to optimize a disk
  770.      to suit Workbench 1.3 systems instead of Workbench 2).
  771.  
  772.   .  Click on Start to commence the optimization process.
  773.  
  774.   .  Help is available to explain the various functions.  Select Help from
  775.      the menu (a question mark is appended to the mouse pointer), then click
  776.      the left mouse button on the various gadgets you want explained.  Select
  777.      Help from the menu again to turn off the Help function.
  778.  
  779.   .  Suggested options:
  780.  
  781.      Format All Tracks  Formats output disk (or Off for pre-formatted disk)
  782.      Write Verify On    Always recommended
  783.      Workbench On       Optimizes to speed up the display of icons
  784.      Graphical On       For an interesting graphical display while optimizing
  785.      Two Drives         Safest
  786.  
  787.   .  If you have virus checkers running all the time (and you should, for
  788.      safety), then they will check the new disk after optimization.  Allow a
  789.      minute or so for this before removing the disk when ReOrg tells you to
  790.      do so (otherwise you might start to remove the disk while the virus
  791.      checker is reading it).
  792.  
  793.    In the ReOrgV2.31 drawer of DiskStarter, I provided an icon for reorg'ing
  794.   a disk in df0: to a disk in df1:, optimized for Workbench 2 or higher, with
  795.   Write Verify on (always use this option, if possible), Graphical Sector
  796.   Display on (because it is interesting to see the display showing how
  797.   fragmented the disk is), and Workbench Optimization (a good choice if there
  798.   are a lot of icons on the disk to be optimized).  If you want to run ReOrg
  799.   with these options, just click on the ReOrg.Suggested icon, insert the disk
  800.   to be optimized in df0: and the output disk in df1:, and then click on
  801.   Start.
  802.  
  803.    Or you could modify the options to suit you, and use Save Prefs to save
  804.   them for future use.
  805.  
  806. ReOrg version 1 - for Workbench 1.3
  807.  
  808.    This version of ReOrg can only be run from the CLI.  On DiskStarter, I
  809.   provided a sample script file called ReOrg.X in the Extra.Help drawer; 
  810.   this can be run from Workbench by clicking on its icon.
  811.  
  812.   .  Always make a backup copy before optimizing any disk.  This is
  813.      particularly important if you are optimizing a disk back on to the same
  814.      volume (say, the same floppy disk).
  815.  
  816.   .  ReOrg is a powerful program, and it is important to be aware of the many
  817.      options available, so read and try to understand the doc.
  818.  
  819.   .  See Suggested Options above (in the ReOrg V2.31 notes), and the note
  820.      following it about removing the disk after ReOrg finishes.
  821.  
  822.   .  To run ReOrg with these options, either use the ReOrg.X script (by
  823.      clicking on its icon), or open a Shell, and type
  824.  
  825.           copy DiskStarter:Optimizers/ReOrg/ReOrgV1.1/ReOrg to RAM:
  826.           ram:ReOrg -f2 -v1 -w1 -d1 -e0 df0: TO df1:
  827.  
  828.   .  Use Ctrl-C to interrupt ReOrg at any time during optimization.
  829.  
  830.  
  831. FINALLY
  832.  
  833.    Try to learn as much as you can about disk management;  this is a critical
  834.   area of computing.  And good disk utilities can make management of your
  835.   disks much more efficient and effective;  seek and use the ones that suit
  836.   you best.
  837.  
  838.  
  839.  
  840. © Leigh Murray
  841.   Queanbeyan NSW
  842.  
  843.   September 1993
  844.  
  845.  
  846.     36 -+- 36 -+- 36 -+- 36 -+- 36 -+- 36 -+- 36 -+- 36 -+- 36 -+- 36 
  847.  
  848.